var map = new BMapGL.Map('container');
var point = new BMapGL.Point(106.55778,29.576332);
map.centerAndZoom(point, 15);
// 创建点标记
var marker = new BMapGL.Marker(point);
map.addOverlay(marker);
// 创建信息窗口
var opts = {
    width: 200,
    height: 100,
    title: '漫咖啡'
};
var infoWindow = new BMapGL.InfoWindow('地址：重庆市江北区北滨一路龙湖星悦荟11区内', opts);
// 点标记添加点击事件
marker.addEventListener('click', function () {
    map.openInfoWindow(infoWindow, point); // 开启信息窗口
});